﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace PetroMentor.Service.Entities
{
    public class CommonSaveInfo<T1,T2>
    {
        public string SaveObjectName { get; set; }

        public string AttachmentName { get; set; }

        public string OP_TYPE { get; set; }

        public T1 SaveObject { get; set; }

        public List<T2> Attachments { get; set; }

    }

    public class SaveStateInfo : ResultStateInfo
    {

    }

    public class ResultStateInfo
    {
        public bool IsSuccess { get; set; }

        public string ErrorInfo { get; set; }
    }
}